package com.caiden_micheal.dynamic.form_change.web;

import com.caiden_micheal.base.domain.AjxResult;
import com.caiden_micheal.dynamic.form_change.dto.FormChangePersonDataRecordDTO;
import com.caiden_micheal.dynamic.form_change.service.FormChangePersonDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/formChange")
public class FormChangeController {

    @Autowired
    private FormChangePersonDataService formChangePersonDataService;

    @PostMapping("/findFormChangePersonDataRecord")
    public AjxResult findFormChangePersonDataRecord(@RequestBody FormChangePersonDataRecordDTO formChangePersonDataRecordDTO) {
        return formChangePersonDataService.findFormChangePersonDataRecord(formChangePersonDataRecordDTO);
    }
}
